<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;
/**
 * @mixin \think\Model
 */
class Brand extends Model
{
    //
    use SoftDelete;
    public function cates()
    {
        return $this->hasOne(Category::class,'id','cate_id')->bind(['cate_name']);//绑定的属性是指另一张表的字段
    }
}
